﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace FutureApp.Roles.Dto
{
    /// <summary>
    /// 更新角色权限参数DTO
    /// </summary>
    public class UpdateRolePermissionsInputDto
    {
        /// <summary>
        /// 角色组ID
        /// </summary>
        [Range(1, int.MaxValue)]
        public int RoleId { get; set; }

        /// <summary>
        /// 要授权的权限列表
        /// </summary>
        [Required]
        public List<string> GrantedPermissionNames { get; set; }
    }
}